<template>
  <div style="width: 100%; height: calc(100vh - 220px); position: relative">
    <FlowGraph :data="processData"></FlowGraph>
  </div>
</template>

<script setup lang="ts">
import FlowGraph from "@/components/Micro/Flow/FlowGraph.vue";
import camundaApi from "@/views/micro/api/camunda.api";
import { ref } from "vue";
const props = defineProps({
  processDefinitionId: {
    type: String
  }
});
const processData = ref();
processData.value = Object.assign(
  { disabled: true },
  await camundaApi.convertToModelByProcessDefinitionId(props.processDefinitionId!)
);
</script>

<style scoped></style>
